home *** CD-ROM | disk | FTP | other *** search
- Path: taco.cc.ncsu.edu!news
- From: dksmith@eos.ncsu.edu
- Newsgroups: comp.lang.c++
- Subject: Windows Dialog Programming Problem
- Date: 28 Mar 1996 16:16:27 GMT
- Organization: North Carolina State University
- Message-ID: <4jee0r$71t@taco.cc.ncsu.edu>
- NNTP-Posting-Host: cc04du.unity.ncsu.edu
-
- Ok. Here is my problem:
-
- I created a dialog in Borland's Resource Workshop. I think tried to call the
- dialog in my C++ code using the succession of API calls MakeProcInstance,
- DialogBox, and FreeProcInstance. I also coded the appropriate Dialog Procedure
- for the dialog. My problem is that the buttons and text on the dialog are drawn
- on the desktop and that the backgrond of the dialog window is not drawn or
- is completely transparent. The dialog buttons themselves retain all of their
- correct functionality but seem to float over the desktop background as it
- existed before I called the dialog box. It is as if the buttons windows in the
- dialog were drawn with a parent window of NULL rather than the dialog window
- handle. This should not happen since I drew the dialog in Resource Workshop and
- called it with DialogBox, sending the dialog name string from the resource file
- with the dialog definition.
-
- Has anyone ever had a similar problem and/or know what I can do to eliminate
- the problem?
-
- If so please email responses to dksmith@eos.ncsu.edu
-
- Thank you in advance.
-
-
- -David Smith
-
-